package org.entity;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

/**
 * Order entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "order_")
public class Order implements java.io.Serializable {

	// Fields

	private String id;
	private String productid;
	private String productname;
	private String userid;
	private String username;
	private String count;
	private String postname;
	private String posttel;
	private String postadd;
	private String posttime;
	private Date createtime;
	private String ext1;
	private String ext2;
	private String ext3;

	// Constructors

	/** default constructor */
	public Order() {
	}

	/** minimal constructor */
	public Order(String id) {
		this.id = id;
	}

	/** full constructor */
	public Order(String id, String productid, String productname,
			String userid, String username, String count, String postname,
			String posttel, String postadd, String posttime, Date createtime,
			String ext1, String ext2, String ext3) {
		this.id = id;
		this.productid = productid;
		this.productname = productname;
		this.userid = userid;
		this.username = username;
		this.count = count;
		this.postname = postname;
		this.posttel = posttel;
		this.postadd = postadd;
		this.posttime = posttime;
		this.createtime = createtime;
		this.ext1 = ext1;
		this.ext2 = ext2;
		this.ext3 = ext3;
	}

	// Property accessors
	@Id
	@GeneratedValue(generator = "paymentableGenerator")
	@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
	@javax.persistence.Column(name = "ID", length = 36)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "productid", length = 50)
	public String getProductid() {
		return this.productid;
	}

	public void setProductid(String productid) {
		this.productid = productid;
	}

	@Column(name = "productname", length = 100)
	public String getProductname() {
		return this.productname;
	}

	public void setProductname(String productname) {
		this.productname = productname;
	}

	@Column(name = "userid", length = 50)
	public String getUserid() {
		return this.userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	@Column(name = "username", length = 100)
	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Column(name = "count_", length = 10)
	public String getCount() {
		return this.count;
	}

	public void setCount(String count) {
		this.count = count;
	}

	@Column(name = "postname", length = 100)
	public String getPostname() {
		return this.postname;
	}

	public void setPostname(String postname) {
		this.postname = postname;
	}

	@Column(name = "posttel", length = 50)
	public String getPosttel() {
		return this.posttel;
	}

	public void setPosttel(String posttel) {
		this.posttel = posttel;
	}

	@Column(name = "postadd", length = 100)
	public String getPostadd() {
		return this.postadd;
	}

	public void setPostadd(String postadd) {
		this.postadd = postadd;
	}

	@Column(name = "posttime", length = 100)
	public String getPosttime() {
		return this.posttime;
	}

	public void setPosttime(String posttime) {
		this.posttime = posttime;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "createtime", length = 10)
	public Date getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	@Column(name = "ext1", length = 100)
	public String getExt1() {
		return this.ext1;
	}

	public void setExt1(String ext1) {
		this.ext1 = ext1;
	}

	@Column(name = "ext2", length = 100)
	public String getExt2() {
		return this.ext2;
	}

	public void setExt2(String ext2) {
		this.ext2 = ext2;
	}

	@Column(name = "ext3", length = 100)
	public String getExt3() {
		return this.ext3;
	}

	public void setExt3(String ext3) {
		this.ext3 = ext3;
	}

}